package com.example.homeworkmanagement.service;

import com.example.homeworkmanagement.pojo.Courses;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.homeworkmanagement.vo.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 拒绝加班
 * @since 2025-05-25
 */
public interface CoursesService extends IService<Courses> {
    // 单表
    ResultVO<List<Courses>> getCourseList(Courses courses, int page, int size);
    ResultVO<Courses> addCourse(Courses course);
    ResultVO<Courses> updateCourse(Courses course);
    ResultVO<Courses> deleteCourse(String courseId);
    ResultVO<Courses> getCourseDetail(String courseId);
    ResultVO<List<Courses>> getCourseListByDepartment(String department);
    ResultVO<String> getCourseIdByName(String courseName);
}
